import request from '@/utils/request'

// 查询招待所使用记录列表
export function listGuest(query) {
  return request({
    url: '/business/guest/list',
    method: 'get',
    params: query
  })
}

// 查询招待所使用记录详细
export function getGuest(id) {
  return request({
    url: '/business/guest/' + id,
    method: 'get'
  })
}

// 新增招待所使用记录
export function addGuest(data) {
  return request({
    url: '/business/guest',
    method: 'post',
    data: data
  })
}

// 修改招待所使用记录
export function updateGuest(data) {
  return request({
    url: '/business/guest',
    method: 'put',
    data: data
  })
}

// 删除招待所使用记录
export function delGuest(id) {
  return request({
    url: '/business/guest/' + id,
    method: 'delete'
  })
}
// 查询招待所列表
export function guestlist(query) {
  return request({
    url: '/business/guest/guestlist',
    method: 'get',
    params: query
  })
}